﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Collections;

namespace cn.loozo.BrokenArrow
{


    public partial class Main : Form
    {
        Websites webdata;
        public Main()
        {
            InitializeComponent();
            webdata = new Websites();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            //String content = webdata.SendRequest("http://www.baidu.com");
            //MessageBox.Show(content);
            //webdata.jsonHR(@"[{""Key"":""aaa"",""Value"":""value1""},{""Key"":""bbb"",""Value"":""value2""}]");
            //webdata.jsonWebsite(@"[{""referrer"":""referrer"",""link"":""link value"",""ad"":""ad value""}]");
            webdata.init();
            BrowserManager bm = new BrowserManager();

            bm.execute(webdata.getCurrentWebsite());
 

            //SortedList list = webdata.HourRate;
            //this.logs.Text = "";
            //foreach (DictionaryEntry element in list)
            //{
            //    int s = (int)element.Key;
            //    int i = (int)element.Value;
            //    this.logs.Text += s + ":" + i + "\r\n";
            //}

        }
    }
}
